package lhy.autoparts.pojo;


import lhy.frontend.annotation.EntityComment;
import lhy.orm.Serializer;
import lhy.orm.annotation.BasicBean;
import lhy.orm.annotation.Column;
import lhy.orm.annotation.TreeStructure;
import lhy.lhyorm.field.DatabaseField;
import lhy.lhyorm.table.DatabaseTable;

import java.io.Serializable;

@DatabaseTable(tableName = "IndexMenu")
@EntityComment("功能菜单")
@BasicBean
@TreeStructure
public class IndexMenu implements Serializable {
	@Column("功能编号")
	@DatabaseField(id=true)
	public int id;

	@Column("名称")
	@DatabaseField public String  name;
	@Column("图标")
	@DatabaseField public String  icon;
	@Column("上级功能")
	@DatabaseField(canBeNull=true)
	public int pid;
	@Column("实体类")
	@DatabaseField(canBeNull=true) public String  voClass;
	@Override
	public String toString() {
		return Serializer.doSerialize(this);
	}
}